package cn.stylefeng.guns.sys.modular.projectPublicity.mapper;

import cn.stylefeng.guns.sys.modular.projectPublicity.entity.MainInfo;
import cn.stylefeng.guns.sys.modular.projectPublicity.model.params.MainInfoParam;
import cn.stylefeng.guns.sys.modular.projectPublicity.model.result.MainInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 公示表 Mapper 接口
 * </p>
 *
 * @author WangZhen
 * @since 2021-01-28
 */
public interface MainInfoMapper extends BaseMapper<MainInfo> {

    /**
     * 获取列表
     *
     * @author WangZhen
     * @Date 2021-01-28
     */
    List<MainInfoResult> customList(@Param("paramCondition") MainInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author WangZhen
     * @Date 2021-01-28
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") MainInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author WangZhen
     * @Date 2021-01-28
     */
    Page<MainInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") MainInfoParam paramCondition);


    /**
     * 添加项目公示
     *
     * @param param
     */
    void insertProjectPublicity(Map<String, Object> param);


    /**
     * 添加项目公示和房屋关联
     *
     * @param param
     */
    void insertPublicityAndHouse(Map<String, Object> param);


    /**
     * 查询公示
     *
     * @param param
     * @return
     */
    List<Map<String, Object>> queryPublicityInfo(Map<String, Object> param);

    /**
     * 查询公示通知的用户信息
     *
     * @param param
     * @return
     */
    List<Map<String, Object>> queryPublicityHouseList(Map<String, Object> param);


}
